You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining

Transform optional chaining operators to workaround https://crbug.com/v8/11558


Version published
Weekly downloads
17M
decreased by-19.7%
Maintainers
4
Install size
6.33 MB
Created
Weekly downloads
 

Package description

What is @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining?

@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining is a Babel plugin designed to address a specific bug in V8 (the JavaScript engine used in Chrome and Node.js) related to the use of spread parameters within optional chaining expressions. This plugin ensures that code using these features behaves correctly across different environments.

What are @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining's main functionalities?

Fixing V8 Bug with Spread Parameters in Optional Chaining

This feature ensures that when using spread parameters within optional chaining, the code executes correctly. Without this plugin, certain versions of V8 might not handle this scenario properly, leading to unexpected behavior.

const obj = { foo: { bar: (...args) => args } };
const result = obj?.foo?.bar(1, 2, 3);
console.log(result); // [1, 2, 3]

Other packages similar to @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining

Changelog

Source

v7.24.7 (2024-06-05)

:bug: Bug Fix
  • babel-node
    • #16554 Allow extra flags in babel-node (@nicolo-ribaudo)
  • babel-traverse
  • babel-helper-transform-fixture-test-runner, babel-plugin-proposal-explicit-resource-management
:house: Internal
  • babel-helpers, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

Readme

Source

@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining

Transform optional chaining operators to workaround https://crbug.com/v8/11558

See our website @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining

or using yarn:

yarn add @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining --dev

Keywords

FAQs

Package last updated on 05 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc